import * as THREE from 'three';
import material from '@/materials/testMaterials'

const geometry = new THREE.BoxGeometry( 30,30, 30 );

// 立方体网格模型
var boxMesh = new THREE.Mesh(geometry, material);
boxMesh.castShadow = true;
boxMesh.receiveShadow = false;

// 立方体几何体box作为EdgesGeometry参数创建一个新的几何体
var edges = new THREE.EdgesGeometry(geometry);
// 立方体线框，不显示中间的斜线
var edgesMaterial = new THREE.LineBasicMaterial({
  color: 0xffffff
})
var line = new THREE.LineSegments(edges,edgesMaterial);







export default {
    boxMesh,
    line
}